<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/WEB-INF/template/crud/list.xhtml">
        <ui:param name="MB" value="#{movimentoController}"/>
        <ui:param name="OPERACAO" value="Listar"/>
        <ui:define name="list">
            <h:column>
                <f:facet name="header">
                    <h:outputText value="ID"/>
                </f:facet>
                <h:outputText value="#{item.idMvt}"/>
            </h:column>
            <h:column>
                <f:facet name="header">
                    <h:outputText value="Data"/>
                </f:facet>
                <h:outputText value="#{item.mvtData}"> 
                    <f:convertDateTime pattern="dd/MM/yyyy" />
                </h:outputText>
            </h:column>
            <h:column>
                <f:facet name="header">
                    <h:outputText value="Origem"/>
                </f:facet>
                <h:outputText value="#{item.ctaOrigem.ctaDescricao}"/>
            </h:column>
            <h:column>
                <f:facet name="header">
                    <h:outputText value="Destino"/>
                </f:facet>
                <h:outputText value="#{item.ctaDestino.ctaDescricao}"/>
            </h:column>
            <h:column>
                <div class="moeda">
                    <f:facet name="header">
                        <h:outputText value="Valor"/>
                    </f:facet>
                    <h:outputText value="#{item.mvtValor}">
                        <f:convertNumber pattern="#,##0.00" />
                    </h:outputText>
                </div>
            </h:column>
        </ui:define>
    </ui:composition>
</html>